var express = require('express');
var http = require('http');
var app = express();

app.get('/index.html/:id/:name', function(req, res){

	var str = '';
	console.log(req.params);
	// [ id: '12', name: 'xx' ]

	for(key in req.params){
		if(str != ""){
			str += "<br/>";	// [ id: '12', name: 'xx' ]
		}

		str += "参数名：" + key;
		str += String.fromCharCode(9) + "参数值：" + req.params[key];
	}
	res.send(str);
});


app.listen(1337, 'localhost');

/*
参数名：id	参数值：12
参数名：name	参数值：xx
*/